package com.easygo.api;

import com.xuexi.easygo.pojo.Content;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("easygo-advert-service")
public interface ContentClient {

    @RequestMapping("content_getContentsByCategoryId")
    List<Content> getContentsByCategoryId(@RequestParam(value = "id") Integer id);

}

